// 作业管理页面模拟数据
const taskData = {
    // 任务统计
    statistics: {
        totalTasks: 15,
        runningTasks: 8,
        waitingTasks: 4,
        completedTasks: 3
    },

    // 作业效率数据
    efficiency: {
        categories: ['岸桥', '龙门吊', 'AGV'],
        data: [{
                name: '平均效率',
                value: [95, 88, 92]
            },
            {
                name: '目标效率',
                value: [100, 100, 100]
            }
        ]
    },

    // 设备利用率
    utilization: {
        categories: ['岸桥', '龙门吊', 'AGV'],
        data: [{
            name: '当前利用率',
            value: [85, 78, 82]
        }]
    },

    // 作业进度数据
    progress: {
        categories: ['装船', '卸船', '转运'],
        data: [{
            name: '完成进度',
            value: [75, 60, 45]
        }]
    },

    // 任务列表数据
    tasks: [{
            id: 'TASK001',
            type: '装船',
            vesselId: 'V001',
            status: 'running',
            startTime: '2024-03-20 08:00',
            endTime: '2024-03-20 16:00',
            progress: 75,
            priority: 'high',
            containerCount: 100,
            devices: [{
                    id: 'QC001',
                    type: '岸桥',
                    name: '岸桥-01',
                    status: 'running',
                    efficiency: 95
                },
                {
                    id: 'RTG001',
                    type: '龙门吊',
                    name: '龙门吊-01',
                    status: 'running',
                    efficiency: 88
                },
                {
                    id: 'AGV001',
                    type: 'AGV',
                    name: 'AGV-01',
                    status: 'running',
                    efficiency: 92
                }
            ]
        },
        {
            id: 'TASK002',
            type: '卸船',
            vesselId: 'V002',
            status: 'waiting',
            startTime: '2024-03-20 09:00',
            endTime: '2024-03-20 17:00',
            progress: 0,
            priority: 'medium',
            containerCount: 80,
            devices: []
        },
        {
            id: 'TASK003',
            type: '转运',
            vesselId: 'V003',
            status: 'running',
            startTime: '2024-03-20 10:00',
            endTime: '2024-03-20 18:00',
            progress: 45,
            priority: 'low',
            containerCount: 50,
            devices: [{
                    id: 'RTG002',
                    type: '龙门吊',
                    name: '龙门吊-02',
                    status: 'running',
                    efficiency: 85
                },
                {
                    id: 'AGV002',
                    type: 'AGV',
                    name: 'AGV-02',
                    status: 'running',
                    efficiency: 90
                }
            ]
        },
        {
            id: 'TASK004',
            type: '装船',
            vesselId: 'V004',
            status: 'completed',
            startTime: '2024-03-20 07:00',
            endTime: '2024-03-20 15:00',
            progress: 100,
            priority: 'high',
            containerCount: 120,
            devices: [{
                    id: 'QC002',
                    type: '岸桥',
                    name: '岸桥-02',
                    status: 'idle',
                    efficiency: 98
                },
                {
                    id: 'RTG003',
                    type: '龙门吊',
                    name: '龙门吊-03',
                    status: 'idle',
                    efficiency: 92
                },
                {
                    id: 'AGV003',
                    type: 'AGV',
                    name: 'AGV-03',
                    status: 'idle',
                    efficiency: 95
                }
            ]
        }
    ]
};